home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
prog
/
spx10.zip
/
SPX_DOC.ZIP
/
SPX_JOY.DOC
< prev
next >
Wrap
Text File
|
1993-05-05
|
1KB
|
34 lines
{ SPX Library Version 1.0 Copyright 1993 Scott D. Ramsay }
SPX_JOY is the joystick handling unit. It can read up two joysticks.
var
stickx, { X locations for joystick 1 & 2 }
sticky : array[1..2] of integer; { Y locations for joystick 1 & 2 }
button1, { button 1 for joystick 1 & 2 }
button2 : array[1..2] of boolean; { button 2 for joystick 1 & 2 }
───────────────────────────────────────────────────────────────────────────
function joythere : boolean;
Returns TRUE if any joystick is connected to the computer.
───────────────────────────────────────────────────────────────────────────
function joy1there : boolean;
Returns TRUE if joystick 1 is connected to the computer.
───────────────────────────────────────────────────────────────────────────
function joy2there : boolean;
Returns TRUE if joystick 2 is connected to the computer.
───────────────────────────────────────────────────────────────────────────
procedure setstick(h:integer);
Reads the joystick setting the global variables.
H: Joystick number to read. 1 or 2
───────────────────────────────────────────────────────────────────────────